package cn.hp.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.hp.dao.PermissionDao;
import cn.hp.domain.Permission;

@Service
@Transactional
public class PermissionServiceImpl implements PermissionService{
	
	
	@Autowired
	private PermissionDao dao;
	
	//查询全部权限信息
	@Override
	public List<Permission> findAll() {
		return dao.findAll();
	}
	
	
	//回显父权限
	@Override
	public List<Permission> addUI() {
		
		return dao.addUI();
	}

	//添加权限
	@Override
	public void save(Permission permission) {
		dao.save(permission);
	}
	
	
	
	
	
	
	
	
	
	
}


